<?
include('header.php');
if(!$is_online){
	redirect('index.php');
	exit;
}
$id = $db->EscapeString($_GET['id']);

	$action = array(
				'google' => 1,
				'facebook' => 1,
				'youtube' => 1,
				'surf' => 1,
				'stumbleupon' => 1,
				'linkedin' => 1,
				'ytlikes' => 1,
				'tweets' => 1
			);
	if (isset($_GET['x']) && isset($action[$_GET['x']])) {
				$page_name = $_GET['x'];
	}else{
				$page_name = 'google';
	}
?>
<script type="text/javascript">
function goSelect(selectobj){
 window.location.href='mysites.php?x='+selectobj
}
</script>
<div class="block medium right">
		<div class="top"><h1>My sites</h1></div>
			<div class="content">
   <b>Select:</b> <select onChange="goSelect(this.value)"><option value="google">Google 1+</option><option value="facebook"<?=($page_name == 'facebook' ? ' selected' : '')?>>Facebook Likes</option><option value="youtube"<?=($page_name == 'youtube' ? ' selected' : '')?>>Youtube Views</option><option value="surf"<?=($page_name == 'surf' ? ' selected' : '')?>>Traffic Exchange</option><option value="ytlikes"<?=($page_name == 'ytlikes' ? ' selected' : '')?>>Youtube Likes</option><option value="stumbleupon"<?=($page_name == 'stumbleupon' ? ' selected' : '')?>>Stumbleupon</option><option value="tweets"<?=($page_name == 'tweets' ? ' selected' : '')?>>Twitter Tweets</option><option value="linkedin"<?=($page_name == 'linkedin' ? ' selected' : '')?>>Linkedin Shares</option></select><br /><br />
<?	
include('pages/mysites/'.$page_name.'.php');
?>
			</div>
</div>
<?
include('footer.php');
?>